import App from './App'
import Icon from "./components/i-icon.vue"
import uviewPlus from 'uview-plus'
import { createSSRApp } from 'vue'
import { createI18n } from 'vue-i18n'
const i18n = createI18n({
	locale:  uni.getLocale(), // 获取已设置的语言,
	legacy: false, // 如果要支持compositionAPI，此项必须设置为false;
	globalInjection: true, // 全局注册$t方法
})
export function createApp() {
  const app = createSSRApp(App)
  app.component('i-icon', Icon)
  app.use(uviewPlus)
  return {
    app
  }
}